.class Lcom/youdao/note/YNoteApplication$1;
.super Landroid/content/BroadcastReceiver;
.source "YNoteApplication.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/youdao/note/YNoteApplication;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/youdao/note/YNoteApplication;


# direct methods
.method constructor <init>(Lcom/youdao/note/YNoteApplication;)V
    .locals 0
    .parameter

    .prologue
    .line 93
    iput-object p1, p0, Lcom/youdao/note/YNoteApplication$1;->this$0:Lcom/youdao/note/YNoteApplication;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 4
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 96
    const-string v1, "com.youdao.note.action.ACCESS_DENIED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 97
    new-instance v0, Lcom/youdao/note/YNoteApplication$1$1;

    iget-object v1, p0, Lcom/youdao/note/YNoteApplication$1;->this$0:Lcom/youdao/note/YNoteApplication;

    invoke-virtual {v1}, Lcom/youdao/note/YNoteApplication;->getUserName()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/youdao/note/YNoteApplication$1;->this$0:Lcom/youdao/note/YNoteApplication;

    invoke-virtual {v2}, Lcom/youdao/note/YNoteApplication;->getPassword()Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Lcom/youdao/note/utils/IpUtils;->getLocalIpAddress()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/youdao/note/YNoteApplication$1$1;-><init>(Lcom/youdao/note/YNoteApplication$1;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 109
    .local v0, task:Lcom/youdao/note/task/network/LoginTask;
    invoke-virtual {v0}, Lcom/youdao/note/task/network/LoginTask;->execute()V

    .line 111
    .end local v0           #task:Lcom/youdao/note/task/network/LoginTask;
    :cond_0
    return-void
.end method
